package com.mes.service.lz;

import com.mes.dao.lz.TrolleyInfoMapper;
import com.mes.entity.lz.LzQueryCriteria;
import com.mes.entity.lz.TrolleyInfo;
import com.mes.entity.lz.TrolleyInfo_ProductCode;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @ClassName TrolleyInfoServiceImpl
 * @Description 台车信息
 * @Author lz
 * @Date 2019年2月18日 14:54:52
 * @Version 1.0
 */
@Service
public class TrolleyInfoServiceImpl implements TrolleyInfoService {

    @Resource
    TrolleyInfoMapper trolleyInfoMapper;

    @Override
    public Long addTrolleyInfo(TrolleyInfo trolleyInfo) {
        return trolleyInfoMapper.addTrolleyInfo(trolleyInfo);
    }

    @Override
    public Long deleteTrolleyInfoById(long id) {
        return trolleyInfoMapper.deleteTrolleyInfoById(id);
    }

    @Override
    public Long updateTrolleyInfoById(TrolleyInfo trolleyInfo) {
        return trolleyInfoMapper.updateTrolleyInfoById(trolleyInfo);
    }

    @Override
    public List<TrolleyInfo> queryTrolleyInfoList(LzQueryCriteria criteria) {
        return trolleyInfoMapper.queryTrolleyInfoList(criteria);
    }

    @Override
    public Long countTrolleyInfoList(LzQueryCriteria criteria) {
        return trolleyInfoMapper.countTrolleyInfoList(criteria);
    }

    @Override
    public List<TrolleyInfo> queryTrolleyByTrolleyCode(String trolleyCode) {
        return trolleyInfoMapper.queryTrolleyByTrolleyCode(trolleyCode);
    }

    @Override
    public Long addTrolleyInfo_ProductCode(TrolleyInfo_ProductCode trolleyInfo_productCode) {
        return trolleyInfoMapper.addTrolleyInfo_ProductCode(trolleyInfo_productCode);
    }

    @Override
    public Long updateTrolleyInfoStatusByTrolleyCode(String trolleyCode) {
        return trolleyInfoMapper.updateTrolleyInfoStatusByTrolleyCode(trolleyCode);
    }
}
